//
//  MyGroupImageCell.m
//  Yiqidianyin
//
//  Created by apple on 15/8/29.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import "MyGroupImageCell.h"
#import "MUser.h"
#import "BigImageViewViewController.h"
#import "ChatViewController.h"
@interface MyGroupImageCell ()
@property (nonatomic,strong)UIImage *myImage;
@property (weak, nonatomic) IBOutlet UIButton *myImageBut;


@end


@implementation MyGroupImageCell

- (void)awakeFromNib {
    // Initialization code
    self.myImageBut.enabled = YES;
}

-(void)setCellInfoWithNSDictionary:(NSDictionary *)dic
{
    self.myImage = dic[@"msg"];
    
    [self.myImageBut setBackgroundImage:self.myImage forState:UIControlStateNormal];
}

- (IBAction)tapImageBtn:(id)sender
{
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
    BigImageViewViewController *bigImageVc = [sb instantiateViewControllerWithIdentifier:@"TopImagecell"];
    ChatViewController *chatVc = [sb instantiateViewControllerWithIdentifier:@"chat"];
    [chatVc.navigationController pushViewController:bigImageVc animated:YES];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state VIPhotoView
}




@end
